package cz.acies.organizer.data.persist;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Hashtable;

public class PhonesNumber implements Serializable
{
	private static final long serialVersionUID = 9012218464799434250L;
	
	public static final int HOME = 1;
	public static final int WORK = 0;
	public static final int MOBILE = 2;
	//public static final int WORK_MOBILE = 0;
	public static final int OTHER = 3;
	//public static final int MAIN = 0;
	//public static final int ISDN = 0;
	//public static final int COMPANY_MAIN = 0;
	//public static final int INTERNAL_EXTENSION = 0;
	//public static final int FAX = 0;
	public static final int HOME_FAX = 4;
	public static final int WORK_FAX = 5;
	public static final int OTHER_FAX = 6;
	//public static final int CAR = 0;
	//public static final int ASSISTANT = 0;
	//public static final int CALLBACK = 0;
	//public static final int PAGER = 0;
	//public static final int WORK_PAGER = 0;
	//public static final int RADIO = 0;
	//public static final int SATELLITE = 0;
	//public static final int TELEX = 0;
	//public static final int TTY_TDD = 0;
	
	public static HashMap<Integer, String> Rels = new HashMap<Integer, String>();
	//static {}
	public static HashMap<String, Integer> RelsId = new HashMap<String, Integer>();
	//static {}

	//protected String label;
	protected String number;
	protected int rel;
	//protected String uri;
	protected boolean primary;

	public PhonesNumber(String number) {
		this(number, HOME, false);
	}
	
	public PhonesNumber(String number, int rel, boolean primary) {
		this.number = number;
		this.rel = rel;
		this.primary = primary;
	}
	
	// -----  -----------------------------------------------------------------
	
	public String getNumber() {
		return number;
	}
	
	public void setNumber(String number) {
		this.number = number;
	}

	public int getRel() {
		return rel;
	}

	public void setRel(int rel) {
		this.rel = rel;
	}

	public boolean isPrimary() {
		return primary;
	}

	public void setPrimary(boolean primary) {
		this.primary = primary;
	}

}
